Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A second pass at redoing load_builtin.py #899

Merged
merged 2 commits into from
Aug 10, 2023
Merged

Conversation

rocky
Copy link
Member

@rocky rocky commented Aug 6, 2023

Second pass at making it possible to load a single module inside mathics.builti rather than all modules at once.

  • the loop updating display_operators_set is now done inside module import rather than its own independent loop.
  • add_builtins_from_builtin_module() isolated from inside add_builtins_from_builtin_modules() so that we can eventually remove the latter.
  • More type annotations, docstrings and comments.

Second pass at making it possible to load a single module inside
mathics.builtin rather than all modules at once.

loop to updating ``display_operators_set`` is now done inside module import
rather than its own independent loop.

``add_builtins_from_builtin_module()`` isolated from inside
``add_builtins_from_builtin_modules()` so that we can eventually remove
the latter.

More type annotations, docstrings and comments.
@rocky rocky force-pushed the module_load_refactor-part2 branch from 25719e7 to 86bfa5c Compare August 7, 2023 02:36
Copy link
Contributor

@mmatera mmatera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rocky rocky merged commit fb77260 into master Aug 10, 2023
11 checks passed
@rocky rocky deleted the module_load_refactor-part2 branch August 10, 2023 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants